var app = angular.module("myApp",[])
app.controller("myController",function($scope,$http){
	$http.get("data/AboutUs.json")
		.then(function(data){
			$scope.arr = data.data.banner
			console.log($scope.arr)
		})
})


$(function(){
	
	var ah_index = 0;
	$(".ahzhb>.leftbar").click(function () {
		ah_index--;
		if(ah_index<0){ah_index = 0;return ;}
		$(".ahzhb").find("ul").animate({"margin-left":(-136*ah_index)+"px"},function () {
		});
	});
	
	$(".ahzhb>.rightbar").click(function () {
	ah_index++;
	if(ah_index>3){ah_index = 3;return ;}
	$(".ahzhb").find("ul").animate({"margin-left":(-136*ah_index)+"px"});
});
	
	$(window).resize(function() {
		window.location.reload();
	});
	
})
